﻿
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Login.ascx.cs" Inherits="Pages_Login" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>

<%@ Register assembly="DevExpress.Web.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxMenu" tagprefix="dx" %>

<style type="text/css">
    
    .styleLogin
    {
        width: 13px;
    }
    .style2
    {
        width: 71px;
    }
</style>

<script type="text/javascript">
    // <![CDATA[
    function Valid() {
        if (txtUserLogin.Value == "")
        {
            alert="Username not null!";
            txtUserLogin.focus();            
        }                   
    }    
    // ]]> 
</script>

<asp:MultiView ID="munviLogin" runat="server">
    <asp:View ID="vLogin1" runat="server">
        <table>
            <tr>
                <td colspan="2">
                    <dx:ASPxLabel ID="lbErrorLogin" runat="server" 
                        CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" 
                        Font-Italic="True" ForeColor="Red">
                    </dx:ASPxLabel>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <dx:ASPxLabel ID="ASPxLabel1" runat="server" 
                        CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" 
                        Text="User Name">
                    </dx:ASPxLabel>
                </td>
                <td>
                    <dx:ASPxTextBox ID="txtUserLogin" runat="server" 
                        CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" 
                        SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css" Width="150px">
                    </dx:ASPxTextBox>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <dx:ASPxLabel ID="ASPxLabel2" runat="server" 
                        CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" 
                        Text="Password">
                    </dx:ASPxLabel>
                </td>
                <td>
                    <dx:ASPxTextBox ID="txtPassLogin" runat="server" 
                        CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" 
                        Password="True" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css" 
                        Width="150px">
                    </dx:ASPxTextBox>
                </td>
            </tr>
            <tr>
                <td align="right" class="style2">
                    <dx:ASPxButton ID="btLogin" runat="server" 
                        CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" 
                        onclick="btLogin_Click1" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css" 
                        Text="Login" Width="50px">
                    </dx:ASPxButton>
                </td>
                <td>
                    <dx:ASPxButton ID="Cancel" runat="server" 
                        CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" 
                        onclick="Cancel_Click" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css" 
                        Text="Cancel" Width="50px">
                    </dx:ASPxButton>
                </td>
            </tr>
        </table>
        <table style="width:auto;" width="130px">
        </table>
    </asp:View>
    <asp:View ID="vLogin2" runat="server">
        <dx:ASPxLabel ID="lbWellCom" runat="server" Text="Wellcom :">
        </dx:ASPxLabel>
        <dx:ASPxLabel ID="lbStatusLogin" runat="server" 
            CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" 
            Font-Italic="False" ForeColor="Blue" Font-Bold="True" Font-Size="12pt">
        </dx:ASPxLabel>
        <dx:ASPxLabel ID="lbID" runat="server" EnableTheming="True" ForeColor="Black" 
            Visible="False">
        </dx:ASPxLabel>
        <dx:ASPxMenu ID="mnLogin" runat="server" AutoSeparators="RootOnly" 
            CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" 
            Orientation="Vertical" ShowPopOutImages="True" 
            SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css" 
            onitemclick="mnLogin_ItemClick" Width="100%">
            <Items>
                <dx:MenuItem Text="Logout">
                </dx:MenuItem>
                <dx:MenuItem Text="Change password">
                </dx:MenuItem>
            </Items>
            <LoadingPanelImage Url="~/App_Themes/DevEx/Web/Loading.gif">
            </LoadingPanelImage>
            <ItemSubMenuOffset FirstItemX="2" LastItemX="2" X="2" />
            <ItemStyle DropDownButtonSpacing="10px" PopOutImageSpacing="10px" />
            <LoadingPanelStyle ImageSpacing="5px">
            </LoadingPanelStyle>
            <SubMenuStyle GutterImageSpacing="9px" GutterWidth="3px" />
        </dx:ASPxMenu>
    </asp:View>
</asp:MultiView>


